#ifndef _PRINTF_H_
#define _PRINTF_H_

#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
#include "serial.h"

typedef bool (*printf_write_c)(void* userData,
                               char c);     //callback can return false anytime to abort  printing immediately

static inline bool platLogPutcharF(void* userData, char c)
{
    Uart_SendByte(c);
    return true;
}
void vprintk(const char *str, ...);

#endif /* _PRINTF_H */
